<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- <!DOCTYPE HTML> -->
<html>

<head>
<title>首页</title>

</head>

<body>
	<a href="room/toadd?userid=${userid}">添加房间</a>
	<table border="2">
		<caption>房间</caption>
		<tr>
			<th>序号</th>
			<th>房间号</th>
			<th>房间名称</th>
			<th>房主</th>
			<th>创建时间</th>
			<th>操作</th>
		</tr>
		<tbody>

			<c:forEach items="${list}" var="item" varStatus="v">
				<tr>
					<td>${v.count}</td>
					<td>房间${item.id}</td>
					<td>${item.roomname}</td>
					<td>${item.roomusername}</td>
					<td>${item.createtime}</td>
					<td><a href="room/join?userid=${userid}&roomid=${item.id}">加入房间</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</body>

</html>